home *** CD-ROM | disk | FTP | other *** search
/ CSi Master: Ableton Live 5 / CSi Master: Ableton Live 5.iso / pc / rsrc / locrsrc / controller.dir / Internal_44_Help Button.ls < prev    next >
Encoding:
Text File  |  2004-12-29  |  1.0 KB  |  44 lines

  1. on mouseDown
  2.   global gEDUtoolsActive, gCurrentCDpath, topicLetter, gLang, topicLetterSave
  3.   if gEDUtoolsActive then
  4.   else
  5.     tell the stage
  6.       vStageMovieName = the movieName
  7.     end tell
  8.     if not (vStageMovieName starts "Help") then
  9.       vorigMember = the member of sprite the clickOn
  10.       set the member of sprite the clickOn to member("help dn")
  11.       sound stop 2
  12.       updateStage()
  13.       repeat while the stillDown
  14.         nothing()
  15.       end repeat
  16.       set the member of sprite the clickOn to vorigMember
  17.       updateStage()
  18.       if topicLetter = VOID then
  19.         topicLetter = "A"
  20.         topicLetterSave = topicLetter
  21.       end if
  22.       if the machineType = 256 then
  23.         tell the stage
  24.           go("credits", "Help.dir")
  25.         end tell
  26.       else
  27.         tell the stage
  28.           go("credits", "Help.dir")
  29.         end tell
  30.       end if
  31.     end if
  32.   end if
  33. end
  34.  
  35. on mouseEnter
  36.   set the member of sprite 23 to member("help prompt")
  37.   updateStage()
  38. end
  39.  
  40. on mouseLeave
  41.   set the member of sprite 23 to member("blank prompt")
  42.   updateStage()
  43. end
  44.